package org.example.myleet.p817;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(2 == solution.numComponents(Parser.parseLinkedList("[0,1,2,3]"), new int[]{0,1,3}));
        Assert.isTrue(2 == solution.numComponents(Parser.parseLinkedList("[0,1,2,3,4]"), new int[]{0,3,1,4}));
    }
}
